import java.io.File;
import java.io.FileInputStream;

public class SendMainService {

	public static void main(String[] args) throws Exception {
		
		FileInputStream fileInputStream=new FileInputStream("E:/a.xls");
		fileInputStream.close();
		new Thread(){
			public void run(){
				
				File file=new File("E:/a.xls");
				System.out.println(file.delete());
			}
		}.start();
		
		System.in.read();
	  }
}

